<?php

namespace App\Model\DesignPattern\Creational\Behavioral\Visitor;

use Illuminate\Database\Eloquent\Model;

class Speak implements AnimalOperation
{
    public function visitMonkey(Monkey $lion)
    {
        $lion->shout();

    }
    public function visitLion(Lion $monkey)
    {
        $monkey->roar();
    }
}
